
pkgname=which
pkgver=2.21
pkgrel=3
pkgdesc="A utility to show the full path of commands"
arch=('x86_64')
url="http://savannah.gnu.org/projects/which"
license=('GPL3')
groups=('base')
depends=('glibc' 'sh')
source=("http://ftp.gnu.org/gnu/which/${pkgname}-${pkgver}.tar.gz")
md5sums=('097ff1a324ae02e0a3b0369f07a7544a')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr
  make
}

check() {
  cd ${pkgname}-${pkgver}
  
  make check
}

package() {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=$pkgdir install
}
